package model;

import services.ComportementCancan;
import services.ComportementVol;

public abstract class Canard 
{
	protected ComportementVol cv;
	protected ComportementCancan cc;
	
	public Canard(ComportementVol cv, ComportementCancan cc) 
	{
		super();
		this.cv = cv;
		this.cc = cc;
	}
	
	public Canard() 
	{
		super();
		this.cv = null;
		this.cc = null;
	}

	public ComportementVol getCv() 
	{
		return cv;
	}

	public void setCv(ComportementVol cv) 
	{
		this.cv = cv;
	}

	public ComportementCancan getCc() 
	{
		return cc;
	}
	
	public void setCc(ComportementCancan cc)
	{
		this.cc = cc;
	}

	public abstract void display();
	
	public void voler()
	{
		if (cv != null)
			cv.voler();
	}
	
	public void cancaner()
	{
		if (cc != null)
			cc.cancaner();
	}
	

}
